package engine;

import role.Player;

import java.util.Objects;

public class Equipment{
    public static String name;         //所有装备都有名字
    public static int power;           //所有装备都有力量属性
    public static int intelligence;    //所有装备都有智力属性
    public static int agile;           //所有装备都有敏捷属性
    public static int price;           //所有装备都有价格

    public Equipment(String name, int power, int intelligence, int agile, int price){
        this.name = name;
        this.power = power;
        this.intelligence = intelligence;
        this.agile = agile;
        this.price = price;
        initialize();
    }

    //初始化 装备
    void initialize(){

    }

//    //创建  头盔西瓜皮
//    public static void helmet(Player player){
//        name = "西瓜皮";
//        price = 1500;
//        if (Objects.equals(player.role, "战士")){
//            power = 5 * player.level * 5;
//            intelligence = 2 * player.level * 2;
//            agile = 3 * player.level * 3;
//        }else if (Objects.equals(player.role, "游侠")){
//            power = 3 * player.level * 3;
//            intelligence = 2 * player.level * 2;
//            agile = 5 * player.level * 5;
//        }else {
//            power = player.level;
//            intelligence = 5 * player.level * 5;
//            agile = player.level;
//        }
//    }
//
//    //创建武器   千年老鱼干
//    public void arms(Player player){
//        name = "千年老鱼干";
//        price = 1500;
//        if (Objects.equals(player.role, "战士")){
//            power = 5 * player.level * 5;
//            intelligence = 2 * player.level * 2;
//            agile = 3 * player.level * 3;
//        }else if (Objects.equals(player.role, "游侠")){
//            power = 3 * player.level * 3;
//            intelligence = 2 * player.level * 2;
//            agile = 5 * player.level * 5;
//        }else {
//            power = player.level;
//            intelligence = 5 * player.level * 5;
//            agile = player.level;
//        }
//    }
//
//    //创建  胸甲
//    public void xiongJia(Player player){
//        name = "胸甲";
//        price = 1500;
//        if (Objects.equals(player.role, "战士")){
//            power = 5 * player.level * 5;
//            intelligence = 2 * player.level * 2;
//            agile = 3 * player.level * 3;
//        }else if (Objects.equals(player.role, "游侠")){
//            power = 3 * player.level * 3;
//            intelligence = 2 * player.level * 2;
//            agile = 5 * player.level * 5;
//        }else {
//            power = player.level;
//            intelligence = 5 * player.level * 5;
//            agile = player.level;
//        }
//    }
//
//    //创建首饰   金闪闪
//    public void shiPin(Player player){
//        name = "金闪闪";
//        price = 1500;
//        if (Objects.equals(player.role, "战士")){
//            power = 5 * player.level * 5;
//            intelligence = 2 * player.level * 2;
//            agile = 3 * player.level * 3;
//        }else if (Objects.equals(player.role, "游侠")){
//            power = 3 * player.level * 3;
//            intelligence = 2 * player.level * 2;
//            agile = 5 * player.level * 5;
//        }else {
//            power = player.level;
//            intelligence = 5 * player.level * 5;
//            agile = player.level;
//        }
//    }
//
//    //创建鞋子   洞洞鞋
//    public void xieZi(Player player){
//        name = "洞洞鞋";
//        price = 1500;
//        if (Objects.equals(player.role, "战士")){
//            power = 5 * player.level * 5;
//            intelligence = 2 * player.level * 2;
//            agile = 3 * player.level * 3;
//        }else if (Objects.equals(player.role, "游侠")){
//            power = 3 * player.level * 3;
//            intelligence = 2 * player.level * 2;
//            agile = 5 * player.level * 5;
//        }else {
//            power = player.level;
//            intelligence = 5 * player.level * 5;
//            agile = player.level;
//        }
//    }

}

